class House {
  static type: string = 'home';
  constructor(public area: number) {}
}

let myHouse: House = new House(100);
// console.log(myHouse.type); // 实例化对象不存在type属性
console.log(House.type);
console.log(myHouse.area);
